<template>
    <view
        @tap="__e"
        @touchmove.stop.prevent="__e"
        class="mask data-v-3b703530"
        :data-event-opts="[
            ['tap', [['cancel', ['$event']]]],
            ['touchmove', [['', ['$event']]]]
        ]"
    >
        <view @tap.stop.prevent="__e" class="mask-content animated fadeInDown data-v-3b703530" :data-event-opts="[['tap', [['', ['$event']]]]]">
            <text @tap.stop.prevent="__e" class="new-iconfont icon-close close-btn data-v-3b703530" :data-event-opts="[['tap', [['cancel', ['$event']]]]]"></text>
            <view class="title data-v-3b703530">邀请活动规则</view>
            <view class="body data-v-3b703530">
                <view class="rule-list _ol data-v-3b703530">
                    <view class="_li data-v-3b703530">① 用户分享活动给好友，好友点击进入活动页并首次授权登陆后为一个成功邀请。</view>
                    <view class="_li data-v-3b703530">
                        ② 被邀者可获得：
                        <label class="color-text _span data-v-3b703530" v-if="!rule.is_invited_reward_enabled">无奖励</label>
                        <single-reward-display @__l="__l" class="color-text data-v-3b703530" :info="rule.invited_reward" vueId="de0822a8-1" v-else></single-reward-display>
                        。
                    </view>
                    <view class="_li data-v-3b703530">③ 邀请者可获得：</view>
                    <view class="_li data-v-3b703530">
                        <uni-table @__l="__l" :border="true" class="data-v-3b703530" vueId="de0822a8-2" :vueSlots="['default']" v-if="$root.g0">
                            <uni-tr @__l="__l" class="data-v-3b703530" :vueId="'de0822a8-3' + ',' + 'de0822a8-2'" :vueSlots="['default']">
                                <uni-th align="center" @__l="__l" class="data-v-3b703530" :vueId="'de0822a8-4' + ',' + 'de0822a8-3'" :vueSlots="['default']">邀请人数</uni-th>
                                <uni-th align="center" @__l="__l" class="data-v-3b703530" :vueId="'de0822a8-5' + ',' + 'de0822a8-3'" :vueSlots="['default']">奖励</uni-th>
                            </uni-tr>
                            <uni-tr
                                @__l="__l"
                                class="data-v-3b703530"
                                :vueId="'de0822a8-6-' + index + ',' + 'de0822a8-2'"
                                :vueSlots="['default']"
                                v-for="(item, index) in addedRule"
                                :key="index"
                            >
                                <uni-td align="center" @__l="__l" class="data-v-3b703530" :vueId="'de0822a8-7-' + index + ',' + 'de0822a8-6-' + index" :vueSlots="['default']">
                                    {{ item.total + '人' }}
                                </uni-td>

                                <uni-td align="center" @__l="__l" class="data-v-3b703530" :vueId="'de0822a8-8-' + index + ',' + 'de0822a8-6-' + index" :vueSlots="['default']">
                                    <single-reward-display
                                        @__l="__l"
                                        class="color-text data-v-3b703530"
                                        :info="item.reward"
                                        :vueId="'de0822a8-9-' + index + ',' + 'de0822a8-8-' + index"
                                    ></single-reward-display>
                                </uni-td>
                            </uni-tr>
                        </uni-table>
                    </view>
                    <view class="_li data-v-3b703530">④ 本活动规则最终解释权归本公司所有。</view>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
import singleRewardDisplay from '@/components/SingleRewardDisplay/SingleRewardDisplay';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/activityTicket/components/Rule'],
    {
        '4bdc': function (t, e, n) {},
        '6b16': function (t, e, n) {
            'use strict';

            Object.defineProperty(e, '__esModule', {
                value: true
            });
            e.default = void 0;
            var c = {
                components: {},
                data: function () {
                    return {};
                },
                props: {
                    info: {
                        type: Object,
                        default: {}
                    }
                },
                computed: {
                    rule: function () {
                        return this.info.rule || {};
                    },
                    addedRule: function () {
                        return this.rule.reward_list || [];
                    }
                },
                watch: {},
                created: function () {},
                methods: {
                    cancel: function () {
                        this.$emit('cancel');
                    }
                },
                onPageScroll: function (t) {}
            };
            e.default = c;
        },
        '7db0': function (t, e, n) {
            'use strict';

            var c = n('4bdc');
            n.n(c).a;
        },
        aa5c: function (t, e, n) {
            'use strict';

            n.d(e, 'b', function () {
                return a;
            });
            n.d(e, 'c', function () {
                return o;
            });
            n.d(e, 'a', function () {
                return c;
            });
            var c = {
                SingleRewardDisplay: function () {
                    return n.e('components/SingleRewardDisplay/SingleRewardDisplay').then(n.bind(null, '979f'));
                }
            };
            var a = function () {
                this.$createElement;
                var t = (this._self._c, this.addedRule.length);
                this.setData(
                    Object.assign(
                        {},
                        {
                            $root: {
                                g0: t
                            }
                        }
                    )
                );
            };
            var o = [];
        },
        aaad: function (t, e, n) {
            'use strict';

            n.r(e);
            var c = n('aa5c');
            var a = n('cb6b');
            for (var o in a) {
                if (['default'].indexOf(o) < 0) {
                    (function (t) {
                        n.d(e, t, function () {
                            return a[t];
                        });
                    })(o);
                }
            }
            n('7db0');
            var i = n('f0c5');
            var u = Object(i.a)(a.default, c.b, c.c, false, null, '3b703530', null, false, c.a, void 0);
            e.default = u.exports;
        },
        cb6b: function (t, e, n) {
            'use strict';

            n.r(e);
            var c = n('6b16');
            var a = n.n(c);
            for (var o in c) {
                if (['default'].indexOf(o) < 0) {
                    (function (t) {
                        n.d(e, t, function () {
                            return c[t];
                        });
                    })(o);
                }
            }
            e.default = a.a;
        }
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'pages/activityTicket/components/Rule-create-component',
    {
        'pages/activityTicket/components/Rule-create-component': function (t, e, n) {
            n('543d').createComponent(n('aaad'));
        }
    },
    [['pages/activityTicket/components/Rule-create-component']]
]);
</script>
<style>
@import './Rule.css';
</style>
